﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;

namespace CollectData.DAL.ModelConfigurations
{
    internal class TrackItem : EntityTypeConfiguration<Model.TrackItem>
    {
        public TrackItem()
        {
            HasKey(p => p.Id);
            Property(p => p.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            Property(p => p.Category.Id).HasColumnName("CategoryId");
        }
    }
}
